package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 停车场管理对象 zhwy_park
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public class ZhwyPark extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键,自增编号 */
    private Long id;

    /** 停车场名 */
    @Excel(name = "停车场名")
    private String name;

    /** 车位数 */
    @Excel(name = "车位数")
    private Long number;

    /** 停车场地址 */
    @Excel(name = "停车场地址")
    private String address;

    /** 手机 */
    @Excel(name = "手机")
    private String phone;

    /** 状态【数据字典】 */
    @Excel(name = "状态【数据字典】")
    private Long state;

    /** 已用车位数 */
    @Excel(name = "已用车位数")
    private Long useNumber;

    /** 计费规则（外键） */
    @Excel(name = "计费规则", readConverterExp = "外=键")
    private Long ruleId;

    /** 收费二维码 */
    @Excel(name = "收费二维码")
    private String image;

    @Excel(name = "收费规则名")
    private String ruleName;

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setUseNumber(Long useNumber) 
    {
        this.useNumber = useNumber;
    }

    public Long getUseNumber() 
    {
        return useNumber;
    }
    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("number", getNumber())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("state", getState())
            .append("useNumber", getUseNumber())
            .append("ruleId", getRuleId())
            .append("image", getImage())
            .toString();
    }
}
